<?php

namespace App\Http\Controllers;

use App\Models\User;
use Illuminate\Http\Request;

class FollowController extends Controller
{
    //我的粉丝
    public function follow(User $user)
    {
        $follows = $user->follow()->simplePaginate(5);
        return view('follows.following', compact('follows'));
    }

    //关注的人
    public function following(User $user)
    {
        $follows = $user->following()->simplePaginate(5);
        return view('follows.follow', compact('follows'));
    }
}
